package org.jeecg.modules.demo.basepayshop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 已购买商品
 * @Author: jeecg-boot
 * @Date: 2022-02-12
 * @Version: V1.0
 */
@Data
@TableName("base_pay_shop")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "base_pay_shop对象", description = "已购买商品")
public class BasePayShop implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 商品分类归属
     */
    @Excel(name = "商品分类归属", width = 15)
    @ApiModelProperty(value = "商品分类归属")
    private String classificationGoods;
    /**
     * 商品名
     */
    @Excel(name = "商品名", width = 15)
    @ApiModelProperty(value = "商品名")
    private String tradeName;
    /**
     * 规格
     */
    @Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String specification;
    /**
     * 权重
     */
    @Excel(name = "权重", width = 15)
    @ApiModelProperty(value = "权重")
    private String weight;
    /**
     * 商品描述
     */
    @Excel(name = "商品描述", width = 15)
    @ApiModelProperty(value = "商品描述")
    private String productDescription;
    /**
     * 商品图
     */
    @Excel(name = "商品图", width = 15)
    @ApiModelProperty(value = "商品图")
    private String productPic;
    /**
     * 价格
     */
    @Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private String productPrice;
    /**
     * 库存
     */
    @Excel(name = "库存", width = 15)
    @ApiModelProperty(value = "库存")
    private String inventory;
    /**
     * 折扣
     */
    @Excel(name = "折扣", width = 15)
    @ApiModelProperty(value = "折扣")
    private String discount;
    /**
     * 商品编码
     */
    @Excel(name = "商品编码", width = 15)
    @ApiModelProperty(value = "商品编码")
    private String commodityCode;
    /**
     * 成本价
     */
    @Excel(name = "成本价", width = 15)
    @ApiModelProperty(value = "成本价")
    private String priceCost;
    /**
     * 最低利润率限额
     */
    @Excel(name = "最低利润率限额", width = 15)
    @ApiModelProperty(value = "最低利润率限额")
    private String minimumMargin;
    /**
     * 毛利率
     */
    @Excel(name = "毛利率", width = 15)
    @ApiModelProperty(value = "毛利率")
    private String grossRate;
    /**
     * 状态 1 = 出售中  2 = 已售完 3=待售 4=下架
     */
    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    private String status;
    /**
     * 详情图
     */
    @Excel(name = "详情图", width = 15)
    @ApiModelProperty(value = "详情图")
    private String detailsUrl;
    /**
     * 订单状态 01 待付款 02 已付款 03 未自提 04  已自提 05  已完成  06  退款中 07  已退款
     */
    @Excel(name = "订单状态", width = 15)
    @ApiModelProperty(value = "订单状态")
    private String orderStatus;

    /**
     * 是否免费
     */
    @Excel(name = "是否免费", width = 15)
    @ApiModelProperty(value = "是否免费")
    private String free;
    /**
     * 详情图
     */
    @Excel(name = "关联提成员工", width = 15)
    @ApiModelProperty(value = "关联提成员工")
    private String staffId;

    @Excel(name = "员工提成", width = 15)
    @ApiModelProperty(value = "员工提成")
    private String staffPercentage;//staff_percentage

    private String storeId;

    private String groupId;

    private String orderId;

    private Integer num;

    private String memberId;

    private String shopId;

}
